//------------Sonic CD BGEffects Script-------------//
//--------Scripted by Christian Whitehead 'The Taxman'--------//
//-------Unpacked By Rubberduckycooly's Script Unpacker-------//

//-------Aliases-------//
#alias 16: TYPE_BGEFFECTS


sub ObjectDraw
	DrawSpriteScreenFX(0, FX_SCALE, 0, 0)
endsub


sub ObjectStartup
	Stage.XBoundary1=41943040
	Stage.XBoundary2=226492416
	Stage.YBoundary1=50331648
	Stage.YBoundary2=218103808
#platform: HW_Rendering
	LoadSpriteSheet("Special/SSMap6.gif")
#endplatform
	LoadSpriteSheet("Special/ss6bg.gif")
	SpriteFrame(0,0,256,256,0,0)
	ArrayPos0=32
	while ArrayPos0<1056
		if Object[ArrayPos0].Type==TypeName[BGEffects]
			Object[ArrayPos0].Priority=1
			Object[ArrayPos0].DrawOrder=0
			Object[ArrayPos0].Scale=Screen.XSize
			Object[ArrayPos0].Scale<<=1
		endif
		ArrayPos0++
	loop
endsub

sub RSDK
	LoadSpriteSheet("Global/Display.gif")
	SetEditorIcon(Icon0,SingleIcon,-16,-16,32,32,1,143)
endsub
